package com.cookor.poi.modules.cms.dao;

import com.cookor.poi.common.persistence.annotation.MyBatisDao;
import com.cookor.poi.modules.cms.entity.CmsQuestion;
import com.cookor.poi.modules.cms.entity.CmsQuestionExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@MyBatisDao
public interface CmsQuestionDao {
    long countByExample(CmsQuestionExample example);

    int deleteByExample(CmsQuestionExample example);

    int deleteByPrimaryKey(String id);

    int insert(CmsQuestion record);

    int insertSelective(CmsQuestion record);

    List<CmsQuestion> selectByExampleWithBLOBs(CmsQuestionExample example);

    List<CmsQuestion> selectByExample(CmsQuestionExample example);

    CmsQuestion selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") CmsQuestion record, @Param("example") CmsQuestionExample example);

    int updateByExampleWithBLOBs(@Param("record") CmsQuestion record, @Param("example") CmsQuestionExample example);

    int updateByExample(@Param("record") CmsQuestion record, @Param("example") CmsQuestionExample example);

    int updateByPrimaryKeySelective(CmsQuestion record);

    int updateByPrimaryKeyWithBLOBs(CmsQuestion record);

    int updateByPrimaryKey(CmsQuestion record);

    void updateHitsAddOne(String id);
}